
<template>
    <div class="tb-bar">
       <el-button type="success" @click="create" icon="wp wp-icon-save">{{createBtnText}}</el-button>
    </div>
</template>
<script>
export default {
  data () {
    return {
      createBtnText: '新建订单'
    }
  },
  methods: {
    create () {
      this.$emit('create', this.createBtnText)
    }
  }
}
</script>
<style lang="scss" scoped>
.tb-bar{
    margin-bottom: 5px;
}
</style>
